package com.sharekitchen.entity;

import com.sharekitchen.common.MyConst;

public class Admin {

    // 员工ID：admin_id，int，主键自增
    private int adminId;

    // 员工名：admin_name，varchar（255)，非空，唯一
    private String adminName;

    // 员工密码：password，varchar（255），非空
    private String password;

    // 员工权限：authority，int，默认 1，1=>管理员，0=>普通员工
    private int authority = MyConst.AUTH_ADMIN;

    // 逻辑删除：is_delete，int，默认0，1=>已删除，0=>未删除
    private int isDelete = MyConst.DELETE_NO;

    public Admin(int adminId, String adminName, String password, int authority, int isDelete) {
        this.adminId = adminId;
        this.adminName = adminName;
        this.password = password;
        this.authority = authority;
        this.isDelete = isDelete;
    }

    public Admin() {
    }

    public int getAdminId() {
        return adminId;
    }

    public void setAdminId(int adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAuthority() {
        return authority;
    }

    public void setAuthority(int authority) {
        this.authority = authority;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "adminId=" + adminId +
                ", adminName='" + adminName + '\'' +
                ", password='" + password + '\'' +
                ", authority=" + authority +
                ", isDelete=" + isDelete +
                '}';
    }
}
